home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload Trio 2 / Shareware Overload Trio Volume 2 (Chestnut CD-ROM).ISO / dir24 / psatool.zip / PSA.H < prev    next >
Text File  |  1994-06-10  |  2KB  |  59 lines

  1. // --------------------------------------------------------------------
  2. //             Header file for use with user interface    
  3. //      Demo software accompanying the QEX xxx   1994 article:           
  4. //      "Using a Programmable PC Sound Card for Amateur Radio"         
  5. //                  (c) Johan Forrer, KC7WW                   
  6. //                       26553 Priceview Drive                             
  7. //                    Monroe, OR 97456                       
  8. // --------------------------------------------------------------------
  9. #include <stdio.h>
  10. #include <stdlib.h>
  11. #include <conio.h>
  12. #include <time.h>
  13. #include <string.h>
  14. #include <ctype.h>
  15. #include <math.h>
  16. #include <dos.h>
  17.  
  18. #define IRQ7        0x0018
  19. #define INT       0x0F        // INT7=0x0F
  20.  
  21. /* WSS register address offsets from WSS base address. */
  22. #define WSS_STATUS               0x0003
  23. #define WSS_CODECINDEXADDR        0x0004
  24. #define WSS_CODECINDEXDATA        0x0005
  25. #define WSS_CODECSTATUS            0x0006
  26. #define WSS_CODECDATA            0x0007
  27.  
  28. /* PSS registers' io port address offsets from pssbase. */
  29. #define PSS_CONFIG    0x0010
  30.  
  31. #define PSS_DATA      0x0000
  32. #define PSS_STATUS    0x0002
  33. #define PSS_CONTROL   0x0002
  34. #define PSS_ID_VERS   0x0004
  35. #define PSS_IRQ_ACK   0x0004
  36.  
  37. // External function prototypes
  38.  
  39. extern unsigned int read_data(unsigned int);
  40. extern void write_data(unsigned int, unsigned int);
  41. extern unsigned long read_prog(unsigned int);
  42. extern void write_prog(unsigned int, unsigned long);
  43. extern int load_DSP_mem(char *);
  44. extern void checkdsptestprog(void);
  45. extern int checkDSPcard(int, int);
  46. extern int bootdsp(char *, char *, unsigned);
  47. extern void set1848state(unsigned char *);
  48. extern int putdspword(unsigned);
  49.  
  50.  
  51. // --------------------------------------------------------------------
  52. // NOTE: for this application the card base is assumed at 220h
  53. //       and the  Windows sound system base is assumed at 530h
  54. // --------------------------------------------------------------------
  55. extern unsigned int pssbase, wssbase;    // ports
  56.  
  57.  
  58.  
  59.